package com.leyou.controller;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;

/**
 * @author jshstart
 * @creat 2020-12-11 12:24
 */
public class Delete {
    public static void main(String[] args) {
        OSS client = new OSSClientBuilder().build("oss-cn-shanghai.aliyuncs.com", "LTAI4GD4v6gAJMy3Ls9jJaCu", "ee6Rjv0NMb3J5dPetjgmlbCYrtr487");
        client.deleteObject("jiao-leyou","leyou01/123.jpg");
        System.out.println("true");
    }
}
